<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            height: 55px;
            width: 55px;
            background: red;
            margin: 100px auto;
        }
        .cc{
            height: 55px;
            width: 110px;
            transition: all .5s;
            transform: translateX(-55px);
        }
        .cc::after{
            height: 55px;
            width: 55px;
            display: inline-block;
            content: "";
            background: url("http://s02.mifile.cn/assets/static/image/mi-logo.png") no-repeat center center;
        }
        .cc::before{
            height: 55px;
            width: 55px;
            display: inline-block;
            content: "";
            background: url("http://s02.mifile.cn/assets/static/image/mi-home.png") no-repeat center center;
        }
        .box:hover .cc{
            transform: translateX(0px);
        }
    </style>
</head>
<body>
<div class="box">
    <div class="cc"></div>
</div>
</body>
</html>